<?php

class View {
    
    public function render($path,$data = false, $error = false){
            require "application/views/$path.php";
    }

    public function rendertemplate($path,$data = false){
            require "templates/".Session::get('template')."/$path.php";
    }

    public function setOutput($output) {
            echo $output;
            exit;
    }

}